Html Form and half of database call with php