model template wrongly referenced class instead of table in SQLA