implementing support for postgresql-async