button for submitting to database