use postgres instead of sqlite3
fix tests