Remove dictionary comprehension
Remove dictionary comprehension in SQLite models
Compatible with 2.6 and 2.7