def db_init(package, tmpdir):
from acorn.logging.database import set_dbdir<EOL>sub = tmpdir.mkdir(package)<EOL>set_dbdir(str(sub))<EOL>from acorn import set_task<EOL>set_task("<STR_LIT>", package)<EOL>return sub<EOL>
Initializes the database directory and sets the task.

    Args:
        package (str): package (task) name to initialize for.
        tmpdir (py.path.local): temporary directory fixture from pytest.