# cursor.execute("select table_name from information_schema.tables where table_schema='qbh_hlfx_backup' and table_name like {}".format('\'%{}\''.format(fre)))
# cursor.execute("select table_name from information_schema.tables where table_schema='qbh_hlfx_backup' and table_name like {}".format('\'%{}\''.format(fre)))
-cursor.execute('show tables like {}'.format('\'%{}\''.format(fre)))
+cursor.execute("show tables like '%%%s%%' "% fre)
table_list = [tuple[0] for tuple in cursor.fetchall()]
table_list = [tuple[0] for tuple in cursor.fetchall()]