fix database test