handling old db