Save title and url in database