added database getsensorvalue