Update db.php

Change is_null() calls to strict checks db.php