implemented loading/saving of maps in indexed-db

implemented loading/saving of maps in indexed-db