Adjested storing a category to new database setup