move psql commands to before_install section