support for postgresql backend

- CMake is broken for now