first pass of making PDOs run directly on database