added php form and database functionality