Fixed db obj bug