added database connection to save treatment remarks