moves lastMessageTime from receivers to interface
reorganizes loop. adds resending of random message from database after 5 minutes of inactivity