made active record work with ReadOnly user