Added an appcache manifest
Branched back
Added missing db.close()