Add index to professors email
Fix race condition on professor creations