organize db info