add db.class.php and app.php

add db.class.php and app.php