started on sql and finished up most of cmd class