fixed some more bugs & fixed some sql

you can now remove and edit a task that contains an apostrophe because
it is now properly escaped