Fix bug in db schema, invite email