added mor db validation functions and rwxt regex