figuring db out