Update QueryBuilder.php

fix error occurs when you use multiple databases.