server: only do the mkdir() calls for db_directory* once at the start