correct relations between the db's now