Heavily improved SQL queries usage for guilds.
Merge pull request #22 from Znote/master

Heavily improved SQL queries usage for guilds.