Changed db from Sqlite3 to PostgeSQl