Refactor database task dir for spec
If a forked repository modifies the configuration of Rails database directory, spec/tasks/gitlab/db_rake_spec.rb
will fail.
Failure information:
gitlab:db namespace rake task clean_structure_sql can be executed multiple times within another rake task
We can use DatabaseTasks.db_dir
instead of hardcode to adapt user's configuration in this test.