add GetMsgBySize method
Merge branch 'detail' of https://github.com/linalanarose/LocalEventsCache into detail
minor changes on database and receiver class