Database backend work

Allow MySQL to be used as a backend.

Add task runtime attributes to the Task table.