add sigma_sql and emysql
common fixes
initial validation before moving to mysql