update database test class