App promises to improve pain management in dementia patients