start working on implement postgresql interface