Improve the way to define model

Remove the code to define columns in the model. Changed to defined all models using database schemas before startup server.
Refactoring tests.