database factory created for abstract db object creation