fix #41 preprare and sql mix