Custom drop function for mongodb