isolates pg code, prepping mongo example