added method for adding categories to the database