DB.php full completed