fix lai sqlcommand