recreate db associations