Framework for DataMapper::Resource queries added