Switch db from sqlite to postgres