Fixed a Safari db bug caused by the last commit. 

Also, now the app works on both IE10 Desktop and Metro on Windows 8 and RT. Single View UI.