You can use EMDK to capture data with events and send to a database. This sample shows the way to get data and then you can do any DB operations without it showing in UI. (in this sample it is showing in UI. refer the code and update it to save to a DB).
Barcode sample: Barcode APIs - Zebra Technologies Techdocs
EMDK: EMDK Archive
Further, you can use intents of DW to capture the same and do any DB operations.
How to use intents to deliver data in DW: Intent Output - Zebra Technologies TechDocs
Hope this helps,