Fixed small bugs and mistakes.
Starting change queries to methods
Merge pull request #73 from nromanen/mgalctc_small_bugs_fixing

Mgalctc small bugs fixing