Using Three PHP Functions to Work With MySQL Databases