web app gets data from sqlite db.
close the database reference