changed localhost to database in admin.php