Database content analysis

Work in progress!