reinstate DB links

putting them back in and doing the DB locally