Added connction handling for various DBs