DBConnect now contains functions to add an measurement and get a new training id from the database.