public query function getTask( required string taskId )
Gets the database record for the given task ID