added databse test functions