change database connections to PDO
and add NOTICE file