fix bug, to show exception message correctly

I modified classes/database/connection.php to show exception message correctly.

Please check and merge.