Test databasestructure