Add error-handling and multiplexing code
Add db file store and save_url method