Added bool read_only

Added bool read_only, if true use EXAMINE instead of SELECT