Database class adjusted with automatic null value for columns