move database schema migration to a separate class
add tests for database schema migration