def active_db():
global dbs<EOL>dbkey = (project, task)<EOL>if dbkey in dbs:<EOL><INDENT>taskdb = dbs[dbkey]<EOL><DEDENT>else:<EOL><INDENT>taskdb = TaskDB()<EOL>dbs[dbkey] = taskdb<EOL>msg.okay("<STR_LIT>".format(*dbkey), <NUM_LIT:2>)<EOL><DEDENT>return taskdb<EOL>
Returns the active :class:`TaskDB` for the current project and task.