apply license to db.php