public long sequestSearchDB(String dbName, String fileName, String type) {
SearchDatabaseType sequestSearchDbType = sequestSearchDBTypeRepository.findByName(type);
if (sequestSearchDbType == null){
sequestSearchDbType = sequestSearchDBTypeRepository.save(new SearchDatabaseType(type));
}
final SearchDatabase db = new SearchDatabase(dbName, fileName, sequestSearchDbType, new Date());
return sequestSearchDBRepository.save(db).getId();
}