refactor the libsqlite dir