added a category table, and edited relations in the database