add category table
fix photo and tests, add migration for category and photo