add a verbose mode to print errors
add PouchDB