basic validations with MySQL DB