Moved users.php, Added SQL, fixed gate.php login