Checking Enforce and Schema versions in the database