Invitation system through database