changed postgesql to sqlite3