added json database access to detailviewactivity