-added the base logic for validating the database vs the model