update SQL to work on azure