flatten user database directory