Check database is built correctly