set gems, switch to psql