adding database_dir for dynamic config