Ensure null values are not inserted into database.