     * @param msg_id The id of the message
     * @return std::string The message
     */
    std::string get_message(const uint msg_id) {
        // If the id we search is smaller than the oldest message from the
        // queue, it means we can find it in the file
        std::string first_msg = messages.front();

        if (get_message_id(first_msg) > msg_id) {
            std::ifstream in(DATABASE_FOLDER + name);
