Database builder from Plain Old PHP Objects