implemented php that submits properly to database