Database Query for detail view

- Added details view query
- Separate constant on ApplicationSetting class