Configurable QueryTablesAPI to call directly postgresql