added features to handle adding notes to the db/backend

saving the jpg still not working, not clear if it's an encoding problem
on ios end or not (i suspect it is).