Partially working

Registration is still forthcoming, but now the adviser and staff views
have multiple connections to the db