move to db.php