tests for database functions complete