This function returns one of the following values:
0 if the database is not in read-only mode.
1 if the database is in read-only mode.