extracting dbstuff into dbclass