Created measurement object and make it save to the database