fixed some ussage issues on sqlite3
fixed permissions
more features