Replaced Sqlite3 database with postgresql