How can I create a form to query a mysql database?