Update Database.php

fix the error "Unsupported operand types line 425" while using mysql.