implementation of PDO into Model class