Removed sqlite3 and changed local database to postgres