Refactoring + Database PDO