Fixing schema version errors
Add check that schema version indicated by file name is same as that written by script into database