changeatt.php now works with database.php