Oh I thought this thread was ignored. I couldn't get any help, So I moved on to capturing my traffic using moloch aka arkime which integrates with elasticsearch. It runs as a daemon in the background and exports data to pcap file and provides a useful html frontend as well as a RESTful API. While I have it installed, all the data was quite overwhelming, so using it is still on my to do list. For now, I am maintaining my recon data in notion manually.
On another note, I think REST API provided by OWASP ZAP Proxy is good enough too. Now that I think of using MySQL database, it would be an overkill IMO. Moloch is less memory consuming and gives more detail on the traffic captured. If you still need the data in MySQL, you can always bridge the HSQLDB to your MySQL database using some exporting script or simply use HSQLDB directly in your code using ODBC/JDBC.