Edited postgresql.notes: more common queiries