Updated viewport for mobile devices. Handles DBNull types