changes from sqlite to postgresql
cleans up and adds migration for hstore