Change app.php, Added PDO connection. 

I changed app.php and more.
Added PDO connection, in app.php.

AND

Please import sql/t_coupon.sql to phpMyAdmin.
See CouponConfig.
There is sample of abstraction, in CouponConfig.