commiting more code

This commit adds database tracking for groups. Now a database keeps track of items like isJoinable and groupOwner
adding mysql file

This file is terrible. Must be replaced.