fixing some issus with models and syncdb