small fix to avoid an OSError when trying to force a repodata regeneration
moving validation to another function for better code reuse
changing version number to 3.1.2 to follow with the last couple of changes
small display update
amended the comments

Yes it works on 5.6.
quick fix

should work around the database problem that I still need to look into - seems like there is a problem with the sequence.
version check redone - may need to decide on another default for specific satellite versions.
v3.2 - fixed postgresql sequence calling issue and defaulted to using the api instead of an insert by default
identation typo fix
typo fix
fixed logic, add verbosity
version change, code validated against 5.6 and should stand to 5.7
merge