added version logging on db error