fixed last issues for MS SQL
added beta support for user_sql for MS SQL