final changes for database storing of monitoring values