Using validations and refactoring the db_model