Added the DAO function and SQL procedure for `getArchivedTaskMetaData`, this was being called by a function in the api but never implemented. Fixes #784