Fixes for queries on User Creation data, minor code cleanup.
Modified endpoints to work while deployed with Apache. Might break localhost endpoints.