Updated DBConnection.php

Fixed openDBconnection and closeDBconnection