First Implementation of IndexedDB --- BEWARE: Dirty Code!!!