create a php script that establishes connections to the "suite" and "wordpress" databases, retrieves data from the "bc_post_management_queue" table, fetches the title from the corresponding WordPress table, makes a call to the GPT-3 API, writes the output to a text file, updates the "pass" value in the "bc_post_management_queue" table, and deletes the row if the "pass" value reaches 0. The connections are closed at the end. Respond with at most 100 words.
user