updated db with links table