Fixed a bug and added the interface to remove an account from the database.