Check for year type

Since the type is enforced by the DB, if the year is not an int, insert will fail, stopping the scanner.
Merge pull request #128 from Glandos/patch-1

Check for year type