database test code deleted