psql prepare and simple settings