added validator and db calssses