delete: moved logic from mapper to query
tests: missing insert assert