Fixed errors with DB regarding backticks, group field names and primary
keys
Merge pull request #1 from reado/fix_db_troubles

Fixed errors with DB regarding backticks, group field names and primary