db: Using plain integer as NULL pointer