restructurization of db/* files