Fix test database name on SQLite, and test_grants() method.

Allows update_db to work properly on SQLite databases.
Merge branch 'fix_sqlite_manager_dump_cmd' into ischool_website