use a hook for the changes to psql

this way the entire method doesn't have to be overwritten
Left in inadvertently?