added read only flag for tables