switch sqlit to postgresql