Refactoring

Refactored getURL, fixed popup.html script paths
Convert from indexedDB to WebSQL