started building database interaction php classes