change from sqlite3 db to postgresql db