save links to DB