finish db migration
migrate existed code to fit new db schema
migrate existed views to fit new db schema