Setting up database for invitations