switch db sqlite3 to postgresql