Switch db from sqlite to postgresql