Snipets and tools for postgres