add bashrc functions, including to join arbitrary number of tables together in postgres