getDB function

A function to return information of the database connection