added db loc fix