a php db operation class