Submitting category to the database