I put the contents of createAccountDB.php into API.php and told createAccount.php to go there for the submit function rather than createAccountDB.php