This is a Perl script (be sure to use the .pl or .cgi extension) that allows you to control a MySQL database for WebStore.
Source Code.