Database wrapper class in PHP.