atabase((e)=>{
			        if(e){
			            console.log("some error, loading remote db again")
			            setUpDatabases()
			        }
			    })
			    db.notebooks.loadDatabase((e)=>{
			        if(e){
			            console.log("some error, loading notebooks db again")
			            setUpDatabases()
			        }
			    })

			    console.log('databases are set')
			}

			function setUpNotebookPage(){
				
	    			notePointer = $('.post').first()
	    			
	    			if(notePointer[0] !== undefined){