delete function

delete query function added to database, test case created