from typing import Dict
from typing import Tuple
from typing import Callable
from typing import List


def _parse_db_command(command_string: str, shell_command_lookup: Dict[str, dict]) -> Tuple[Callable, List]:
    """ Parse a database command into (command function, arguments) tuple

    :param command_string: String of command + arguments
    :param shell_command_lookup: Dict of shell commands for looking up execute function
    """

    func = shell_command_lookup["execute"]["func"]

    return func, [command_string]