UpdateSql

Added sql functionality