Added getDbInstance
This method should be used to get a DB object instance when needed in class function and at the beginning of files.