Implements optional database validation
Fixes tabs
Merge pull request #318 from Simperium/issues/311-allowing-optional-validation

Allowing optional validation