build lsql database for training