change postresql to sqlite3