Changed logging of db failures