Sorted out dateDone code

Made sure that toggling $done is done by the Database class rather than
changing the value in the class and re-saving, which was changing other
data.