New Relic interview question

Take home coding challenge, OOP, database stuff