update postgres database interface