Added method to Database to tell if an Artifact exists in the artifacts table