Full update to the database and fixed undoing cells.

Everything should be much happier now.
Fixes closing issue
Comment fixes
Fixed API so it doesnt try to use ObjectID
Updates API to work with new DB, adds function to delete cells called deleteCell(cell)