add pgsql and sqlite specific methods