Change Database type Determination

Using switch was causing mysql/mysqli connections to return an SQLite object.  Switched to an if statement.