Update Db.php

The forgotten check if the value is bool.