change of database from sqlite3 to postrgreSQL