Fixing the sqlite query

Merge remote-tracking branch 'origin/master'

Conflicts:
	Main.py

Conflicts:
	Main.py