def get_tables(ctx):
    """Get tables of current schema"""
    with ctx.obj.get_cursor() as cursor:
        cursor.execute("""
        SELECT table_name FROM information_schema.tables
        WHERE table_schema='public'
        """.format(**locals()))
        data = [row[0] for row in cursor.fetchall()]
        return data