Moving check for bin not existing in db out side of active check

Active will not be set untill bin is in database
resolves #1036