Database class improvement

Added "sendQuery" and "getConnectionDetails" to the database class.