added functions to delete data from the database
Merge remote-tracking branch 'upstream/master'