Imporve Database.php

it looks like `EXPLAIN connect` doesn't work and `$explain` sometimes comes in as a object