Add support for postgres database