added connection to postgres database, added mapping to nodejs routing