improve sql parser & sql wall

#531 #530 #529  #528  #529  #528  #527  #526  #525  #523