Test and implement list_invites for database. Create tests for list_invites command method
Implement list_invites command method