Starting to to replace old database layer with PDO, getting some structure in place.