Model implementation using PDO database connection and integration with Controllers