This is a basic implementation of PDO to make database connection and querying a database easy.