updated `set` method and added method for removing files
removing file and db entry