Use sequel_pg, optimized postgres adapter