All database functions are tested