public static void EditMessage(string senderUserName)
        {
            try
            {
                DatabaseAccess.DBConnectionOpen();

                Console.WriteLine("Write the username of the receiver that you want to Edit: ");
                string receiverUserName = Console.ReadLine();

                Console.WriteLine("Enter the Date and time of the message.");
                var dateOfSubmission = DateTime.Parse(Console.ReadLine());

                Console.WriteLine("Write the new Message: ");
                string newMessage = Console.ReadLine();

                DatabaseAccess.DBExistentUsernameInMessages(senderUserName, receiverUserName, dateOfSubmission);

                DatabaseAccess.DBUpdateMessage(senderUserName, receiverUserName, dateOfSubmission, newMessage);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            finally
            {
                DatabaseAccess.DBConnectionClose();
                DatabaseAccess.DBConnectionDispose();
            }
        }