test saving to psql