Added debug function to modify database