use a hook for the changes to psql

this way the entire method doesn't have to be overwritten
no, it's me being a bad person and leaving it in there so i don't have to use source control later cause it was hard to figure out how to do that part.