Simplified object-based MySQL queries in PHP