updated SQL files

SQL files have been updated.  The only function you need to run from /db is query_notes: 
psql <database_name> -f query_notes.sql