Moved DBConnect and the measurement class to their own class library.