Unable to select database through DB class