an utility to tell sqlite3 database's locking status