Added messages and contacts filtering by timestamp