changed the execute_queries() to use transactions instead of pure ->query()