Fixed dbModule to use localStorage and not $cookieStore which didn't work when compiled into apk