# Issue reading from database

**URL:** <https://forum.webostv.developer.lge.com/t/issue-reading-from-database/2431>\
**Category:** Web App Development\
**Created:** [March 17, 2023, 11:36pm UTC](https://forum.webostv.developer.lge.com/t/issue-reading-from-database/2431 "2023-03-17T23:36:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![achunt2143](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@achunt2143](https://forum.webostv.developer.lge.com/u/achunt2143)\
**Post date:** [March 17, 2023, 11:36pm UTC](https://forum.webostv.developer.lge.com/t/issue-reading-from-database/2431/1 "2023-03-17T23:36:33Z")

</div>

I am trying to read data from a database using the ID that is generated by put. However, I can not pass this value and read that entry. If I take an ID and pass it, I will get the response. What am I doing wrong? And is there a way to have an ID specified to call a specific entry in the database? Code and response is below.

let response = new LS2Request().send({  
service: ‘luna://com.palm.db/’,  
method: ‘get’,  
parameters: {  
ids: [id]  
},  
onSuccess: function(inResponse){  
console.log("get says "+JSON.stringify(inResponse));  
},  
onFailure: function(inError){  
console.log("get did not work with “+inError.code+”: "+inError.text);  
return;  
}  
});

get says {“returnValue”:true,“results”:}

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [March 20, 2023, 7:20am UTC](https://forum.webostv.developer.lge.com/t/issue-reading-from-database/2431/2 "2023-03-20T07:20:01Z")

</div>

Please refer to [DB8](https://github.com/webOS-TV-app-samples/DB8) sample app. This app shows how to use DB8 in your app. Thank you.
