Refactored code. Facing issue - mscdex/node-mariasql#81
Started using the async module to run validations.