Modified lbaas.sql to include new errmsg field