Foreign-key constraints are not created on database
Since changeset447564584bb3 sql constrains are no longer created on the database. This is because it test if model is instance of modelSQL, but it should use issubclass as we are comparing two classes.