small fixes; corrected column name in insert