Implemented Database Delete Function