Add script to look up postgres sql statements