Keep useful SQL queries close. For PostgreSQL of course.