split db-related things in loads.db