add some validators and SQL class