Bail out when database is read-only