Check database schema before migration