Optional `lastMsg` now works by getting all messages with a newer timestamp than the reference message. Optional `limit` works using SQL ~magic~ keyword `LIMIT`. Also `limit` has to be at least 1.