changing to psql and adding dependencies