Simple PDO helper to perform most common database operations