add support for postgres DB + more front end implementation