few bugs fix
sqlite as default database