Updated how replies are retrieved from DB.