Remember to create a bucket (ObjectStore) before saving. Also open the database before loading (if the page has been refreshed).
Open the console to see the details.