moved database detection to DatabaseInfo class