Space is append to the end of the insert_ignore database class variable - missed on - but some of the peewee unit tests depend on not having two spaces in the query string.