Implemented key removal from db