def METHOD_NAME(vd, url, filetype=None):
    psycopg2 = vd.importExternal('psycopg2', 'psycopg2-binary')
    url = urlparse(url.given)
    dbname = url.path[1:]
    conn = psycopg2.connect(
                user=url.username,
                dbname=dbname,
                host=url.hostname,
                port=url.port,
                password=url.password)
    return PgTablesSheet(dbname+"_tables", sql=SQL(conn))