add db.php for database operation and other things associate with init