Add support for transactional feature relation

If a the inserted features has a valid sampledFeature, this feature relation is stored in the database.