fix sorting bug
add sqlite3 database plugin