fixed presto_create_tables function