change db from sqlite to postgresql