fix dir output
add log in sqllite con/