Updated for the new DatabaseConnector

Mostly changing names for functions
Updated so that users can register and login, also added new teach Gravity AI page with Alpha perms check