Added saving to db for sharing