added db join