bugfixes in db code in generate_vardark.py. normalized fit and using xerror again..