now also imports gems if not in database