Fixed compiler errors after refactoring database

Migrated EF6 to "Code First" approach.