PL/SQL is a procedural language designed specifically to embrace SQL statements within its syntax, including procedural language elements such as conditions and loops, and can handle exceptions. It is native to Oracle databases but also supported in other databases like IBM DB2, PostgreSQL, and MySQL through compatibility features. JavaScript UDF (User-Defined Function) is Couchbase's alternative to PL/SQL, bringing JavaScript's general-purpose scripting flexibility to databases for dynamic and powerful operations across modern database systems. Most modern databases support JavaScript UDFs. The main problem users face when migrating from Oracle to Couchbase is porting their PL/SQL scripts, which can be tedious due to the complexity of these scripts often extending to thousands of lines. To address this issue, a Generative AI model has been used to automate the conversion of PL/SQL to JSUDF. The tool leverages advances in AI and LLMs to achieve high accuracy in translation, with results being 80-85% accurate. It also reduces hallucination by focusing on one task at a time. Users can download the executable from Couchbase Labs GitHub and access the README for instructions on how to use the tool, which expects specific command-line arguments. The tool supports cross-package function calls but requires manual tweaking of global variables due to limitations in handling them. It has been tested with various operations such as insert, update, delete, and view, demonstrating its effectiveness in migrating PL/SQL scripts to Couchbase via JavaScript UDFs. The project is open source, inviting contributions and ideas for improvement, including the integration of critic AI to ensure minimal manual intervention. Resources for further information include the Couchbase Labs GitHub repository and ANTLR parser generator tool.