Fix of the database directory task. Closes #3.