<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def main_restore(directory, conn_name):
 """Restore your database dumped with the dump command just a wrapper around `dump restore` https://github.com/Jaymon/dump """

    inter = get_interface(conn_name)
    conn = inter.connection_config
    cmd = get_base_cmd("restore", inter, directory)
    run_cmd(cmd)