fixing some db links