Add fieldsErr, Constants in query, delete validation in dao