fix create trigger issue; support multi-threading db operation