from datetime import datetime


def format_time(time_string):
    """
    Converts the backups date-time format into the format required by sqlite3.
    :param time_string: The date time in the backup's format
    :return: The date time in the database's required format.
    """
    dt = datetime.strptime(time_string, '%Y/%m/%d %H:%M')
    return datetime.strftime(dt, '%Y-%m-%d %H:%M:%S')