Modularize database file structure