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

Active will not be set until bin is in database, if the bin has no metadata, it means it does not exist in teh database and has been created form default files.
This resolves #1036