postgresql interface for decafjs