Finished db migration with existed features and views

After some simple test (mock env.), I believe new db schema will working good with current existed REST API and views, please update the code and do more test, if found some bugs, please let me know


Thanks