added missing database functions to test suite