More validator refactoring. Error with port numbers. Mocking out db insert procedures.